package com.baitengsoft.patentapimonitor.api.service;

import com.baitengsoft.patentapimonitor.api.entity.SysAdminUserTokenEntity;
import com.baitengsoft.patentapimonitor.api.entity.SysAdmininfoEntity;
import com.baitengsoft.patentapimonitor.api.entity.WebUserTokenEntity;
import com.baitengsoft.patentapimonitor.api.entity.WebUserinfoEntity;

/**
 * shiro相关接口
 * @author KennyGu
 */
public interface ShiroService {

    WebUserTokenEntity queryWebUserByToken(String token);

    /**
     * 根据用户ID，查询用户
     * @param userId
     */
    WebUserinfoEntity queryWebUser(Long userId);


    SysAdminUserTokenEntity queryAdminUserByToken(String token);

    /**
     * 根据用户ID，查询用户
     * @param userId
     */
    SysAdmininfoEntity queryAdminUser(Long userId);
}
